package com.ms.game.forciblyBulletin.db;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicModel;

@Entity
@Table(name = "forcibly_bulletin")
public class ForciblyBulletinModel extends BasicModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8121713538016836431L;

	
	/**
	 * 編號
	 */
	private int id;
	
	/**
	 * 顯示區域類型 
	 * com.ms.game.forciblyBulletin.ForciblyBulletinShowType
	 */
	private String showType;
	
	/**
	 * 狀態 (1:啟用、0:停用)
	 */
	private int status;
	
	/**
	 * 公告內容 
	 */
	private String content;
	
	/**
	 * 開始時間
	 */
	private Date startTime;
	
	/**
	 * 結束時間 
	 */
	private Date endTime;
	
	/**
	 * 輪播時間 
	 */
	private long repetTime;
	
	// 建立時間
	private Date createTime;
	
	/**
	 * 修改時間 
	 */
	private Date modifyTime;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String getShowType() {
		return showType;
	}

	public void setShowType(String showType) {
		this.showType = showType;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(columnDefinition = "TEXT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public long getRepetTime() {
		return repetTime;
	}

	public void setRepetTime(long repetTime) {
		this.repetTime = repetTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
